31010: Function test for xfm:tan

Documentation

Tests of function xfm:tan The test cases below are taken from the w3c XPath 3.1 test suite at https://dev.w3.org/cvsweb/2011/QT3-test-suite/math/.

Owners

Name Affiliation Email Start End
Harald Schmitt ABZ Reporting GmbH harald.schmitt@abz-reporting.com 29-10-2018 at 00:00:00

References

https://www.w3.org/TR/xpath-functions-31/#func-math-tan

https://dev.w3.org/cvsweb/2011/QT3-test-suite/math/

Test Case Variations


V-01 Evaluate the function xfm:tan() with the argument ()

Documentation

Inputs

Outputs

  • Result test: empty($result)

V-02 Evaluate the function xfm:tan() with the argument 0

Documentation

Inputs

Outputs

  • Result test: $result eq 0.0e0

V-03 Evaluate the function xfm:tan() with the argument -0.0e0

Documentation

Inputs

Outputs

  • Result test: $result eq -0.0e0

V-04 Evaluate the function xfm:tan() with the argument xfm:pi() div 4

Documentation

Inputs

Outputs

  • Result test: abs($result - 1.0e0) lt 0.0000001

V-05 Evaluate the function xfm:tan() with the argument -xfm:pi() div 4

Documentation

Inputs

Outputs

  • Result test: abs($result - -1.0e0) lt 0.0000001

V-06 Evaluate the function xfm:tan() with the argument xfm:pi() div 4

Documentation

Inputs

Outputs

  • Result test: abs($result) le 1e-12

V-07 Evaluate the function xfm:tan() with the argument xfm:pi() div 4

Documentation

Inputs

Outputs

  • Result test: abs($result) le 1e-12

V-08 Evaluate the function xfm:tan() with the argument xfm:pi()

Documentation

Inputs

Outputs

  • Result test: abs($result) < 1e-12

V-09 Evaluate the function xfm:tan() with the argument xs:double('NaN')

Documentation

Inputs

Outputs

  • Result test: string($result) eq 'NaN'

V-10 Evaluate the function xfm:tan() with the argument xs:double('INF')

Documentation

Inputs

Outputs

  • Result test: string($result) eq 'NaN'

V-11 Evaluate the function xfm:tan() with the argument xs:double('-INF')

Documentation

Inputs

Outputs

  • Result test: string($result) eq 'NaN'

Revisions

Name On Details
Harald Schmitt 29-10-2018 at 00:00:00 Created the test case.